QT       += core gui
QT       += sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17



# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    AdminCenter.cpp \
    AdminInfoMag.cpp \
    BorrowMag.cpp \
    DetailNotice.cpp \
    QMyPageWidget.cpp \
    QRoleReader.cpp \
    Variate.cpp \
    administrator_info_add.cpp \
    book_info_add.cpp \
    book_info_manage.cpp \
    dboperation.cpp \
    main.cpp \
    mainwindow.cpp \
    reader_info_add.cpp \
    reader_info_manage.cpp \
    registerwindow.cpp \
    bookinfo.cpp \
    bookinfob.cpp \
    borrowbook.cpp \
    reader.cpp \
    readercenter.cpp \
    readeredit.cpp \
    returnbook.cpp

HEADERS += \
    AdminCenter.h \
    AdminInfoMag.h \
    BorrowMag.h \
    DetailNotice.h \
    QMyPageWidget.h \
    QRoleReader.h \
    Variate.h \
    administrator_info_add.h \
    book_info_add.h \
    book_info_manage.h \
    dboperation.h \
    mainwindow.h \
    reader_info_add.h \
    reader_info_manage.h \
    registerwindow.h \
    bookinfo.h \
    bookinfob.h \
    borrowbook.h \
    datastruct.h \
    reader.h \
    readercenter.h \
    readeredit.h \
    returnbook.h

FORMS += \
    AdminCenter.ui \
    AdminInfoMag.ui \
    BorrowMag.ui \
    DetailNotice.ui \
    administrator_info_add.ui \
    book_info_add.ui \
    book_info_manage.ui \
    mainwindow.ui \
    reader_info_add.ui \
    reader_info_manage.ui \
    registerwindow.ui \
    bookinfo.ui \
    bookinfob.ui \
    borrowbook.ui \
    reader.ui \
    readercenter.ui \
    readeredit.ui \
    returnbook.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res.qrc

DISTFILES += \
    sources/widgetbackgound.jpg
